<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the MantisNewsTable class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single MantisNewsTable object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a MantisNewsTableMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read MantisNewsTable $MantisNewsTable the actual MantisNewsTable data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QIntegerTextBox $ProjectIdControl
	 * @property-read QLabel $ProjectIdLabel
	 * @property QIntegerTextBox $PosterIdControl
	 * @property-read QLabel $PosterIdLabel
	 * @property QIntegerTextBox $ViewStateControl
	 * @property-read QLabel $ViewStateLabel
	 * @property QIntegerTextBox $AnnouncementControl
	 * @property-read QLabel $AnnouncementLabel
	 * @property QTextBox $HeadlineControl
	 * @property-read QLabel $HeadlineLabel
	 * @property QTextBox $BodyControl
	 * @property-read QLabel $BodyLabel
	 * @property QIntegerTextBox $LastModifiedControl
	 * @property-read QLabel $LastModifiedLabel
	 * @property QIntegerTextBox $DatePostedControl
	 * @property-read QLabel $DatePostedLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class MantisNewsTableMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var MantisNewsTable objMantisNewsTable
		 * @access protected
		 */
		protected $objMantisNewsTable;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of MantisNewsTable's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QIntegerTextBox txtProjectId
		 * @access protected
		 */
		protected $txtProjectId;
		/**
		 * @var QIntegerTextBox txtPosterId
		 * @access protected
		 */
		protected $txtPosterId;
		/**
		 * @var QIntegerTextBox txtViewState
		 * @access protected
		 */
		protected $txtViewState;
		/**
		 * @var QIntegerTextBox txtAnnouncement
		 * @access protected
		 */
		protected $txtAnnouncement;
		/**
		 * @var QTextBox txtHeadline
		 * @access protected
		 */
		protected $txtHeadline;
		/**
		 * @var QTextBox txtBody
		 * @access protected
		 */
		protected $txtBody;
		/**
		 * @var QIntegerTextBox txtLastModified
		 * @access protected
		 */
		protected $txtLastModified;
		/**
		 * @var QIntegerTextBox txtDatePosted
		 * @access protected
		 */
		protected $txtDatePosted;

		// Controls that allow the viewing of MantisNewsTable's individual data fields
		/**
		 * @var QLabel lblProjectId
		 * @access protected
		 */
		protected $lblProjectId;
		/**
		 * @var QLabel lblPosterId
		 * @access protected
		 */
		protected $lblPosterId;
		/**
		 * @var QLabel lblViewState
		 * @access protected
		 */
		protected $lblViewState;
		/**
		 * @var QLabel lblAnnouncement
		 * @access protected
		 */
		protected $lblAnnouncement;
		/**
		 * @var QLabel lblHeadline
		 * @access protected
		 */
		protected $lblHeadline;
		/**
		 * @var QLabel lblBody
		 * @access protected
		 */
		protected $lblBody;
		/**
		 * @var QLabel lblLastModified
		 * @access protected
		 */
		protected $lblLastModified;
		/**
		 * @var QLabel lblDatePosted
		 * @access protected
		 */
		protected $lblDatePosted;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * MantisNewsTableMetaControl to edit a single MantisNewsTable object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single MantisNewsTable object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisNewsTableMetaControl
		 * @param MantisNewsTable $objMantisNewsTable new or existing MantisNewsTable object
		 */
		 public function __construct($objParentObject, MantisNewsTable $objMantisNewsTable) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this MantisNewsTableMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked MantisNewsTable object
			$this->objMantisNewsTable = $objMantisNewsTable;

			// Figure out if we're Editing or Creating New
			if ($this->objMantisNewsTable->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisNewsTableMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing MantisNewsTable object creation - defaults to CreateOrEdit
 		 * @return MantisNewsTableMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objMantisNewsTable = MantisNewsTable::Load($intId);

				// MantisNewsTable was found -- return it!
				if ($objMantisNewsTable)
					return new MantisNewsTableMetaControl($objParentObject, $objMantisNewsTable);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a MantisNewsTable object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new MantisNewsTableMetaControl($objParentObject, new MantisNewsTable());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisNewsTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisNewsTable object creation - defaults to CreateOrEdit
		 * @return MantisNewsTableMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return MantisNewsTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisNewsTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisNewsTable object creation - defaults to CreateOrEdit
		 * @return MantisNewsTableMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return MantisNewsTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objMantisNewsTable->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QIntegerTextBox txtProjectId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtProjectId_Create($strControlId = null) {
			$this->txtProjectId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtProjectId->Name = QApplication::Translate('Project Id');
			$this->txtProjectId->Text = $this->objMantisNewsTable->ProjectId;
			$this->txtProjectId->Required = true;
			return $this->txtProjectId;
		}

		/**
		 * Create and setup QLabel lblProjectId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblProjectId_Create($strControlId = null, $strFormat = null) {
			$this->lblProjectId = new QLabel($this->objParentObject, $strControlId);
			$this->lblProjectId->Name = QApplication::Translate('Project Id');
			$this->lblProjectId->Text = $this->objMantisNewsTable->ProjectId;
			$this->lblProjectId->Required = true;
			$this->lblProjectId->Format = $strFormat;
			return $this->lblProjectId;
		}

		/**
		 * Create and setup QIntegerTextBox txtPosterId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtPosterId_Create($strControlId = null) {
			$this->txtPosterId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtPosterId->Name = QApplication::Translate('Poster Id');
			$this->txtPosterId->Text = $this->objMantisNewsTable->PosterId;
			$this->txtPosterId->Required = true;
			return $this->txtPosterId;
		}

		/**
		 * Create and setup QLabel lblPosterId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblPosterId_Create($strControlId = null, $strFormat = null) {
			$this->lblPosterId = new QLabel($this->objParentObject, $strControlId);
			$this->lblPosterId->Name = QApplication::Translate('Poster Id');
			$this->lblPosterId->Text = $this->objMantisNewsTable->PosterId;
			$this->lblPosterId->Required = true;
			$this->lblPosterId->Format = $strFormat;
			return $this->lblPosterId;
		}

		/**
		 * Create and setup QIntegerTextBox txtViewState
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtViewState_Create($strControlId = null) {
			$this->txtViewState = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtViewState->Name = QApplication::Translate('View State');
			$this->txtViewState->Text = $this->objMantisNewsTable->ViewState;
			$this->txtViewState->Required = true;
			return $this->txtViewState;
		}

		/**
		 * Create and setup QLabel lblViewState
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblViewState_Create($strControlId = null, $strFormat = null) {
			$this->lblViewState = new QLabel($this->objParentObject, $strControlId);
			$this->lblViewState->Name = QApplication::Translate('View State');
			$this->lblViewState->Text = $this->objMantisNewsTable->ViewState;
			$this->lblViewState->Required = true;
			$this->lblViewState->Format = $strFormat;
			return $this->lblViewState;
		}

		/**
		 * Create and setup QIntegerTextBox txtAnnouncement
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtAnnouncement_Create($strControlId = null) {
			$this->txtAnnouncement = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtAnnouncement->Name = QApplication::Translate('Announcement');
			$this->txtAnnouncement->Text = $this->objMantisNewsTable->Announcement;
			$this->txtAnnouncement->Required = true;
			return $this->txtAnnouncement;
		}

		/**
		 * Create and setup QLabel lblAnnouncement
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblAnnouncement_Create($strControlId = null, $strFormat = null) {
			$this->lblAnnouncement = new QLabel($this->objParentObject, $strControlId);
			$this->lblAnnouncement->Name = QApplication::Translate('Announcement');
			$this->lblAnnouncement->Text = $this->objMantisNewsTable->Announcement;
			$this->lblAnnouncement->Required = true;
			$this->lblAnnouncement->Format = $strFormat;
			return $this->lblAnnouncement;
		}

		/**
		 * Create and setup QTextBox txtHeadline
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtHeadline_Create($strControlId = null) {
			$this->txtHeadline = new QTextBox($this->objParentObject, $strControlId);
			$this->txtHeadline->Name = QApplication::Translate('Headline');
			$this->txtHeadline->Text = $this->objMantisNewsTable->Headline;
			$this->txtHeadline->Required = true;
			$this->txtHeadline->MaxLength = MantisNewsTable::HeadlineMaxLength;
			return $this->txtHeadline;
		}

		/**
		 * Create and setup QLabel lblHeadline
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblHeadline_Create($strControlId = null) {
			$this->lblHeadline = new QLabel($this->objParentObject, $strControlId);
			$this->lblHeadline->Name = QApplication::Translate('Headline');
			$this->lblHeadline->Text = $this->objMantisNewsTable->Headline;
			$this->lblHeadline->Required = true;
			return $this->lblHeadline;
		}

		/**
		 * Create and setup QTextBox txtBody
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtBody_Create($strControlId = null) {
			$this->txtBody = new QTextBox($this->objParentObject, $strControlId);
			$this->txtBody->Name = QApplication::Translate('Body');
			$this->txtBody->Text = $this->objMantisNewsTable->Body;
			$this->txtBody->Required = true;
			$this->txtBody->TextMode = QTextMode::MultiLine;
			return $this->txtBody;
		}

		/**
		 * Create and setup QLabel lblBody
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblBody_Create($strControlId = null) {
			$this->lblBody = new QLabel($this->objParentObject, $strControlId);
			$this->lblBody->Name = QApplication::Translate('Body');
			$this->lblBody->Text = $this->objMantisNewsTable->Body;
			$this->lblBody->Required = true;
			return $this->lblBody;
		}

		/**
		 * Create and setup QIntegerTextBox txtLastModified
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtLastModified_Create($strControlId = null) {
			$this->txtLastModified = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtLastModified->Name = QApplication::Translate('Last Modified');
			$this->txtLastModified->Text = $this->objMantisNewsTable->LastModified;
			$this->txtLastModified->Required = true;
			return $this->txtLastModified;
		}

		/**
		 * Create and setup QLabel lblLastModified
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblLastModified_Create($strControlId = null, $strFormat = null) {
			$this->lblLastModified = new QLabel($this->objParentObject, $strControlId);
			$this->lblLastModified->Name = QApplication::Translate('Last Modified');
			$this->lblLastModified->Text = $this->objMantisNewsTable->LastModified;
			$this->lblLastModified->Required = true;
			$this->lblLastModified->Format = $strFormat;
			return $this->lblLastModified;
		}

		/**
		 * Create and setup QIntegerTextBox txtDatePosted
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtDatePosted_Create($strControlId = null) {
			$this->txtDatePosted = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtDatePosted->Name = QApplication::Translate('Date Posted');
			$this->txtDatePosted->Text = $this->objMantisNewsTable->DatePosted;
			$this->txtDatePosted->Required = true;
			return $this->txtDatePosted;
		}

		/**
		 * Create and setup QLabel lblDatePosted
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblDatePosted_Create($strControlId = null, $strFormat = null) {
			$this->lblDatePosted = new QLabel($this->objParentObject, $strControlId);
			$this->lblDatePosted->Name = QApplication::Translate('Date Posted');
			$this->lblDatePosted->Text = $this->objMantisNewsTable->DatePosted;
			$this->lblDatePosted->Required = true;
			$this->lblDatePosted->Format = $strFormat;
			return $this->lblDatePosted;
		}



		/**
		 * Refresh this MetaControl with Data from the local MantisNewsTable object.
		 * @param boolean $blnReload reload MantisNewsTable from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objMantisNewsTable->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objMantisNewsTable->Id;

			if ($this->txtProjectId) $this->txtProjectId->Text = $this->objMantisNewsTable->ProjectId;
			if ($this->lblProjectId) $this->lblProjectId->Text = $this->objMantisNewsTable->ProjectId;

			if ($this->txtPosterId) $this->txtPosterId->Text = $this->objMantisNewsTable->PosterId;
			if ($this->lblPosterId) $this->lblPosterId->Text = $this->objMantisNewsTable->PosterId;

			if ($this->txtViewState) $this->txtViewState->Text = $this->objMantisNewsTable->ViewState;
			if ($this->lblViewState) $this->lblViewState->Text = $this->objMantisNewsTable->ViewState;

			if ($this->txtAnnouncement) $this->txtAnnouncement->Text = $this->objMantisNewsTable->Announcement;
			if ($this->lblAnnouncement) $this->lblAnnouncement->Text = $this->objMantisNewsTable->Announcement;

			if ($this->txtHeadline) $this->txtHeadline->Text = $this->objMantisNewsTable->Headline;
			if ($this->lblHeadline) $this->lblHeadline->Text = $this->objMantisNewsTable->Headline;

			if ($this->txtBody) $this->txtBody->Text = $this->objMantisNewsTable->Body;
			if ($this->lblBody) $this->lblBody->Text = $this->objMantisNewsTable->Body;

			if ($this->txtLastModified) $this->txtLastModified->Text = $this->objMantisNewsTable->LastModified;
			if ($this->lblLastModified) $this->lblLastModified->Text = $this->objMantisNewsTable->LastModified;

			if ($this->txtDatePosted) $this->txtDatePosted->Text = $this->objMantisNewsTable->DatePosted;
			if ($this->lblDatePosted) $this->lblDatePosted->Text = $this->objMantisNewsTable->DatePosted;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC MANTISNEWSTABLE OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's MantisNewsTable instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveMantisNewsTable() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtProjectId) $this->objMantisNewsTable->ProjectId = $this->txtProjectId->Text;
				if ($this->txtPosterId) $this->objMantisNewsTable->PosterId = $this->txtPosterId->Text;
				if ($this->txtViewState) $this->objMantisNewsTable->ViewState = $this->txtViewState->Text;
				if ($this->txtAnnouncement) $this->objMantisNewsTable->Announcement = $this->txtAnnouncement->Text;
				if ($this->txtHeadline) $this->objMantisNewsTable->Headline = $this->txtHeadline->Text;
				if ($this->txtBody) $this->objMantisNewsTable->Body = $this->txtBody->Text;
				if ($this->txtLastModified) $this->objMantisNewsTable->LastModified = $this->txtLastModified->Text;
				if ($this->txtDatePosted) $this->objMantisNewsTable->DatePosted = $this->txtDatePosted->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the MantisNewsTable object
				$this->objMantisNewsTable->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's MantisNewsTable instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteMantisNewsTable() {
			$this->objMantisNewsTable->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'MantisNewsTable': return $this->objMantisNewsTable;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to MantisNewsTable fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'ProjectIdControl':
					if (!$this->txtProjectId) return $this->txtProjectId_Create();
					return $this->txtProjectId;
				case 'ProjectIdLabel':
					if (!$this->lblProjectId) return $this->lblProjectId_Create();
					return $this->lblProjectId;
				case 'PosterIdControl':
					if (!$this->txtPosterId) return $this->txtPosterId_Create();
					return $this->txtPosterId;
				case 'PosterIdLabel':
					if (!$this->lblPosterId) return $this->lblPosterId_Create();
					return $this->lblPosterId;
				case 'ViewStateControl':
					if (!$this->txtViewState) return $this->txtViewState_Create();
					return $this->txtViewState;
				case 'ViewStateLabel':
					if (!$this->lblViewState) return $this->lblViewState_Create();
					return $this->lblViewState;
				case 'AnnouncementControl':
					if (!$this->txtAnnouncement) return $this->txtAnnouncement_Create();
					return $this->txtAnnouncement;
				case 'AnnouncementLabel':
					if (!$this->lblAnnouncement) return $this->lblAnnouncement_Create();
					return $this->lblAnnouncement;
				case 'HeadlineControl':
					if (!$this->txtHeadline) return $this->txtHeadline_Create();
					return $this->txtHeadline;
				case 'HeadlineLabel':
					if (!$this->lblHeadline) return $this->lblHeadline_Create();
					return $this->lblHeadline;
				case 'BodyControl':
					if (!$this->txtBody) return $this->txtBody_Create();
					return $this->txtBody;
				case 'BodyLabel':
					if (!$this->lblBody) return $this->lblBody_Create();
					return $this->lblBody;
				case 'LastModifiedControl':
					if (!$this->txtLastModified) return $this->txtLastModified_Create();
					return $this->txtLastModified;
				case 'LastModifiedLabel':
					if (!$this->lblLastModified) return $this->lblLastModified_Create();
					return $this->lblLastModified;
				case 'DatePostedControl':
					if (!$this->txtDatePosted) return $this->txtDatePosted_Create();
					return $this->txtDatePosted;
				case 'DatePostedLabel':
					if (!$this->lblDatePosted) return $this->lblDatePosted_Create();
					return $this->lblDatePosted;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to MantisNewsTable fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'ProjectIdControl':
						return ($this->txtProjectId = QType::Cast($mixValue, 'QControl'));
					case 'PosterIdControl':
						return ($this->txtPosterId = QType::Cast($mixValue, 'QControl'));
					case 'ViewStateControl':
						return ($this->txtViewState = QType::Cast($mixValue, 'QControl'));
					case 'AnnouncementControl':
						return ($this->txtAnnouncement = QType::Cast($mixValue, 'QControl'));
					case 'HeadlineControl':
						return ($this->txtHeadline = QType::Cast($mixValue, 'QControl'));
					case 'BodyControl':
						return ($this->txtBody = QType::Cast($mixValue, 'QControl'));
					case 'LastModifiedControl':
						return ($this->txtLastModified = QType::Cast($mixValue, 'QControl'));
					case 'DatePostedControl':
						return ($this->txtDatePosted = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>